home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wayzata's Best of Shareware PC/Windows 1
/
Wayzata's Best of Shareware for PC-Windows - Release 1 - Wayzata Technology (1993).iso
/
mac
/
DOS
/
EDITORS
/
BE300
/
ASK.CHS
next >
Wrap
Text File
|
1992-10-18
|
9KB
|
294 lines
{
int i,j;
char temp[80];
i=pick_file("ask.txt","Inquire what variable?",2,0);
i=i+1;
while (i>0){
if(i==1){
/* file_autoindent */
j=ask("file_autoindent");
msg("Value for %s is [%ld]","file_autoindent",j);
}
else if(i==2){
/* file_bspace */
j=ask("file_bspace");
msg("Value for %s is [%ld]","file_bspace",j);
}
else if(i==3){
/* file_changes */
j=ask("file_changes");
msg("Value for %s is [%ld]","file_changes",j);
}
else if(i==4){
/* file_cmode */
j=ask("file_cmode");
msg("Value for %s is [%ld]","file_cmode",j);
}
else if(i==5){
/* file_column */
j=ask("file_column");
msg("Value for %s is [%ld]","file_column",j);
}
else if(i==6){
/* file_dirty */
j=ask("file_dirty");
msg("Value for %s is [%ld]","file_dirty",j);
}
else if(i==7){
/* file_id_no */
j=ask("file_id_no");
msg("Value for %s is [%ld]","file_id_no",j);
}
else if(i==8){
/* file_in_mark */
j=ask("file_in_mark");
msg("Value for %s is [%ld]","file_in_mark",j);
}
else if(i==9){
/* file_insmode */
j=ask("file_insmode");
msg("Value for %s is [%ld]","file_insmode",j);
}
else if(i==10){
/* file_line */
j=ask("file_line");
msg("Value for %s is [%ld]","file_line",j);
}
else if(i==11){
/* file_matching */
j=ask("file_matching");
msg("Value for %s is [%ld]","file_matching",j);
}
else if(i==12){
/* file_name */
ask("file_name",temp);
msg("Value for %s is [%s]","file_name",temp);
}
else if(i==13){
/* file_new */
j=ask("file_new");
msg("Value for %s is [%ld]","file_new",j);
}
else if(i==14){
/* file_number */
j=ask("file_number");
msg("Value for %s is [%ld]","file_number",j);
}
else if(i==15){
/* file_path */
ask("file_path",temp);
msg("Value for %s is [%s]","file_path",temp);
}
else if(i==16){
/* file_rmargin */
j=ask("file_rmargin");
msg("Value for %s is [%ld]","file_rmargin",j);
}
else if(i==17){
/* file_smart_tabs */
j=ask("file_smart_tabs");
msg("Value for %s is [%ld]","file_smart_tabs",j);
}
else if(i==18){
/* file_tabsize */
j=ask("file_tabsize");
msg("Value for %s is [%ld]","file_tabsize",j);
}
else if(i==19){
/* file_timed */
j=ask("file_timed");
msg("Value for %s is [%ld]","file_timed",j);
}
else if(i==20){
/* file_w_height */
j=ask("file_w_height");
msg("Value for %s is [%ld]","file_w_height",j);
}
else if(i==21){
/* file_w_left */
j=ask("file_w_left");
msg("Value for %s is [%ld]","file_w_left",j);
}
else if(i==22){
/* file_w_top */
j=ask("file_w_top");
msg("Value for %s is [%ld]","file_w_top",j);
}
else if(i==23){
/* file_w_width */
j=ask("file_w_width");
msg("Value for %s is [%ld]","file_w_width",j);
}
else if(i==24){
/* file_wordwrap */
j=ask("file_wordwrap");
msg("Value for %s is [%ld]","file_wordwrap",j);
}
else if(i==25){
/* file_x */
j=ask("file_x");
msg("Value for %s is [%ld]","file_x",j);
}
else if(i==26){
/* file_y */
j=ask("file_y");
msg("Value for %s is [%ld]","file_y",j);
}
else if(i==27){
/* sys_autoindent */
j=ask("sys_autoindent");
msg("Value for %s is [%ld]","sys_autoindent",j);
}
else if(i==28){
/* sys_autostrip */
j=ask("sys_autostrip");
msg("Value for %s is [%ld]","sys_autostrip",j);
}
else if(i==29){
/* sys_autotrail */
j=ask("sys_autotrail");
msg("Value for %s is [%ld]","sys_autotrail",j);
}
else if(i==30){
/* sys_backups */
ask("sys_backups",temp);
msg("Value for %s is [%s]","sys_backups",temp);
}
else if(i==31){
/* sys_bounce */
j=ask("sys_bounce");
msg("Value for %s is [%ld]","sys_bounce",j);
}
else if(i==32){
/* sys_bspace */
j=ask("sys_bspace");
msg("Value for %s is [%ld]","sys_bspace",j);
}
else if(i==33){
/* sys_carraige */
j=ask("sys_carraige");
msg("Value for %s is [%ld]","sys_carraige",j);
}
else if(i==34){
/* sys_cmode */
j=ask("sys_cmode");
msg("Value for %s is [%ld]","sys_cmode",j);
}
else if(i==35){
/* sys_cols */
j=ask("sys_cols");
msg("Value for %s is [%ld]","sys_cols",j);
}
else if(i==36){
/* sys_delete */
j=ask("sys_delete");
msg("Value for %s is [%ld]","sys_delete",j);
}
else if(i==37){
/* sys_extensions */
temp[0]=0;
if(get_str(temp,"Which extension? (1-10)",2)){
j=atoi(temp);
if((j>0)&&(j<11)){
ask("sys_extensions",j,temp);
msg("Value for %s[%ld] is [%s]","sys_extensions",j,temp);
}
}
}
else if(i==38){
/* sys_fcount */
j=ask("sys_fcount");
msg("Value for %s is [%ld]","sys_fcount",j);
}
else if(i==39){
/* sys_inmacro */
j=ask("sys_inmacro");
msg("Value for %s is [%ld]","sys_inmacro",j);
}
else if(i==40){
/* sys_insmode */
j=ask("sys_insmode");
msg("Value for %s is [%ld]","sys_insmode",j);
}
else if(i==41){
/* sys_matching */
j=ask("sys_matching");
msg("Value for %s is [%ld]","sys_matching",j);
}
else if(i==42){
/* sys_mouse */
j=ask("sys_mouse");
msg("Value for %s is [%ld]","sys_mouse",j);
}
else if(i==43){
/* sys_rdefs */
ask("sys_rdefs",temp);
msg("Value for %s is [%s]","sys_rdefs",temp);
}
else if(i==44){
/* sys_recording */
j=ask("sys_recording");
msg("Value for %s is [%ld]","sys_recording",j);
}
else if(i==45){
/* sys_rmargin */
j=ask("sys_rmargin");
msg("Value for %s is [%ld]","sys_rmargin",j);
}
else if(i==46){
/* sys_rows */
j=ask("sys_rows");
msg("Value for %s is [%ld]","sys_rows",j);
}
else if(i==47){
/* sys_sdefs */
ask("sys_sdefs",temp);
msg("Value for %s is [%s]","sys_sdefs",temp);
}
else if(i==48){
/* sys_smart_tabs */
j=ask("sys_smart_tabs");
msg("Value for %s is [%ld]","sys_smart_tabs",j);
}
else if(i==49){
/* sys_tabsize */
j=ask("sys_tabsize");
msg("Value for %s is [%ld]","sys_tabsize",j);
}
else if(i==50){
/* sys_timed */
j=ask("sys_timed");
msg("Value for %s is [%ld]","sys_timed",j);
}
else if(i==51){
/* sys_word_delim */
ask("sys_word_delim",temp);
msg("Value for %s is [%s]","sys_word_delim",temp);
}
else if(i==52){
/* sys_wordwrap */
j=ask("sys_wordwrap");
msg("Value for %s is [%ld]","sys_wordwrap",j);
}
else if(i==53){
/* sys_zoom */
j=ask("sys_zoom");
msg("Value for %s is [%ld]","sys_zoom",j);
}
else if(i==54){
/* version */
ask("version",temp);
msg("Value for %s is [%s]","version",temp);
}
else if(i==55){
/* ws_size */
j=ask("ws_size");
msg("Value for %s is [%ld]","ws_size",j);
}
getkey();
i=pick_file("ask.txt","Inquire what variable?",2,i-1);
i=i+1;
}
}